package com.pine.dbant.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.pine.dbant.common.model.ConnectionInfo;
import com.pine.dbant.core.model.ConnState;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.JdbcType;

import java.util.Map;


@Setter
@Getter
@TableName(value ="dba_connection",autoResultMap = true)
public class Connection extends ConnectionInfo {



    /**
     * 其他连接参数
     */
    @TableField(typeHandler = JacksonTypeHandler.class, value = "properties",jdbcType = JdbcType.OTHER)
    private Map<String,String> properties;


    /**
     * 状态
     */
    private ConnState state;



}
